package edu.kjxy.day03.synchronizedOneThreadIn;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 18:18
 */
public class ThreadB extends Thread{
    private ObjectService service;
    public ThreadB(ObjectService service){
        super();
        this.service = service;
    }

    @Override
    public void run() {
        super.run();
        service.serviceMethod();
    }
}
